package com.zsgeek.entity;

import java.sql.Date;

/**
 * 操作任务实体类
 * @author malu
 *
 */
public class Operation_task {
	
	/**
	 * 自增长id
	 */
	private int id;
	/**
	 * 关联的operation_conf需求表的记录ID
	 */
	private int requirementId;
	/**
	 * 关联的operation_conf需求表记录中的sellerCode，
	 * 分配任务资源时要用到sellerCode过滤，避免联合查询，在此设置一个冗余字段
	 */
	private String sellerCode;
	/**
	 * 分配的BuyerId，指定的buyer执行任务
	 */
	private int buyerId;
	/**
	 * 与buyerId关联的vpsId，在指定的VPS上运行任务。任务运行资源分配时要利用vpsId计算，避免联合查询设置此冗余字段
	 */
	private int vpsId;
	/**
	 * 指定任务就绪或启动的时间，在此时间后任务才开始执行
	 */
	private Date readyTime;
	/**
	 * 0：待执行， 1：执行中，2：挂起，3：已下单待评价，4：已下单待反馈
	 */
	private int status;
	/**
	 * 任务已经运行的次数，任务运行失败后再次运行后次数加1
	 */
	private int runningTimes;
	/**
	 * 任务运行失败在这里记录失败异常描述
	 */
	private String remark;
	/**
	 * Place order后Amazon生成的订单编号
	 */
	private String amzOrderNumber;
	/**
	 * 订单生成后分配的运单号
	 */
	private String trackingNumber;
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getRequirementId() {
		return requirementId;
	}
	public void setRequirementId(int requirementId) {
		this.requirementId = requirementId;
	}
	public String getSellerCode() {
		return sellerCode;
	}
	public void setSellerCode(String sellerCode) {
		this.sellerCode = sellerCode;
	}
	public int getBuyerId() {
		return buyerId;
	}
	public void setBuyerId(int buyerId) {
		this.buyerId = buyerId;
	}
	public int getVpsId() {
		return vpsId;
	}
	public void setVpsId(int vpsId) {
		this.vpsId = vpsId;
	}
	public Date getReadyTime() {
		return readyTime;
	}
	public void setReadyTime(Date readyTime) {
		this.readyTime = readyTime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getRunningTimes() {
		return runningTimes;
	}
	public void setRunningTimes(int runningTimes) {
		this.runningTimes = runningTimes;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getAmzOrderNumber() {
		return amzOrderNumber;
	}
	public void setAmzOrderNumber(String amzOrderNumber) {
		this.amzOrderNumber = amzOrderNumber;
	}
	public String getTrackingNumber() {
		return trackingNumber;
	}
	public void setTrackingNumber(String trackingNumber) {
		this.trackingNumber = trackingNumber;
	}
	
	
	
	
}
